import request from '../utilis/requet'
import request2 from "../utilis/requet2"
import request3 from "../utilis/request3"

export const listinfo=()=>{
    return request.get("/my/cate/list")
}

export const xiaoshuoheard=()=>{
    return request2.get('/api/get_data_by_page/')
}

export const xiaoshuopage=(index)=>{
    console.log(index);
    return request2.get(`/api/get_books_total?id=${index}`)
}
export const xiaoshuocontent=(id)=>{
    return request2.get(`/api/get_reader_con?id=${id}`)
}

// 书香楼小说api
export const shuxianglou=(id)=>{
    return request3({
        url:`/booklist?id=${id}`,
    })
}
// 书香楼小说内容api
export const shuxiangloucontent=(id)=>{
    return request3({
        url:`/bookid/${id}`,
    })
}


